﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKArchMethodLibrary.Utils;

namespace YJKElementFinish.ColumnSurface.Managers
{
	public class ParallelArcWallComparer : IComparer<KeyValuePair<double, Wall>>
	{
		public int Compare(KeyValuePair<double, Wall> lhv, KeyValuePair<double, Wall> rhv)
		{
			double key = lhv.Key;
			double key2 = rhv.Key;
			if (Geometry.IsEqual(key, key2))
			{
				return 0;
			}
			if (Geometry.LessThan(key, key2))
			{
				return -1;
			}
			return 1;
		}
	}
}
